package com.example.wenliangjiudian.mapper;

import com.example.wenliangjiudian.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    User getByName(@Param("username") String username);

    List<User> selectAll();

    void delete(@Param("id")Integer id);

    void add(@Param("user") User user);

    User getById(@Param("id")Integer id);

    void update(@Param("user")User user);
}
